-- GENERATED SPELL FOR [Captain Olster] --


function spell0_23962(pUnit, Event) --@Concussion Blow,n/a--
pUnit:FullCastSpellOnTarget(32588,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_23962', 5275, 1)
end

function spell1_23962(pUnit, Event) --@Intercept,n/a--
pUnit:FullCastSpellOnTarget(27577,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_23962', 589, 1)
end

function spell2_23962(pUnit, Event) --@Mortal Strike,n/a--
pUnit:FullCastSpellOnTarget(16856,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_23962', 5318, 1)
end

function Sorts_23962(pUnit, Event)
local choix_sorts_23962 = math.random(0, 2)
if choix_sorts_23962 == 0 then
pUnit:RegisterEvent('spell0_23962', 1, 1)
end
if choix_sorts_23962 == 1 then
pUnit:RegisterEvent('spell1_23962', 1, 1)
end
if choix_sorts_23962 == 2 then
pUnit:RegisterEvent('spell2_23962', 1, 1)
end
end

function mob23962_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_23962', math.random(1500, 3000), 1)
end

function mob23962_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob23962_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob23962_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(23962, 1, 'mob23962_Action')
RegisterUnitEvent(23962, 2, 'mob23962_Leave')
RegisterUnitEvent(23962, 3, 'mob23962_Kill')
RegisterUnitEvent(23962, 4, 'mob23962_Die')
